package com.neuedu.mvc.controller;

import org.springframework.web.HttpRequestHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * 项目：      spring-framework
 * 类名:       MyNameUrlController
 * 创建时间：  2024/3/15 11：10
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */




public class MyNameUrlController implements HttpRequestHandler {



//    http://localhost:8080/web/my_name_url.action
    @Override
    public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("后台BeanNameUrlController执行");

        PrintWriter out = response.getWriter();
        out.write("beanNameurlController");
        out.flush();
        out.close();
    }
}